I succefully imported project using this instruction https://github.com/TEAMMATES/teammates/blob/master/docs/ide-setup.md#intellij-idea
but have had 'Cannot resolve symbol' errors for standart Java classes imports. Caches Invalidation didn't help.

@Artyom-Ganev
Try this: click on "gradle" on the right side of your intellij toolbar. After which, click on the refresh symbol.

Let us know if it works for you!
It didn't help. Are the settings correct?

I tried to run tests and got Error:java: Fatal Error: Unable to find package java.lang in classpath or bootclasspath

Soulution is here
https://stackoverflow.com/questions/3049433/intellij-gives-fatal-error-unable-to-find-package-java-lang-in-classpath-or-boo
Somehow the JDK language jars were removed from the classpath. All I had to do was reapply the JSDK home path.
Goto: File -> Project Structure -> Platform Settings -> SDKs Re-apply the JSDK home path.
Doing this added about 15 jars to the classpath. Apparently these are important for compiling.
Did you try the solution in the stackoverflow answer? Still doesn't work?
I tried and it worked
Most helpful comment
I tried and it worked