Otherwise, we may have a chicken-egg problem, when the inferred type is computed using its initializer and the initializer type is computed using the variable type which is not computed yet
Fixes IDEA-371650 [Java] test problem com.intellij.java.codeInsight.daemon.LightAdvLVTIHighlightingTest.testSimpleAvailability: Non-idempotent computation
(cherry picked from commit 69f4608ea9ba6ce98cda8c02acdc51134d4c5552)
IJ-CR-163729
GitOrigin-RevId: 6dbe3502b3d730b04766567feaff8442988971f9
- in the end, for the physical binary file, the language level would be calculated by the file itself, and for the source file, the navigation element should be the same file anyway
^KTIJ-33883 fixed
KT-75830
(cherry picked from commit fece6faa6154eadfb6565ad3ae093c2e7840d31a)
IJ-CR-160935
GitOrigin-RevId: 88c2a5d41f41d1c823ca7de6df5e938811e223f0
Fixes IDEA-369220 JSpecify support - wrong warning when Nullable method is declared in NullMarked scope and overridden
(cherry picked from commit 50163bfda72bd1f583dda644c668b78859fac022)
IJ-CR-159281
GitOrigin-RevId: fc33b9c9f8ae165baba5a70c00b91267e57d68b1
- set language level explicitly
(cherry picked from commit 01b844c4f0d812c4505491121429af3cc7df24c5)
IJ-CR-159083
GitOrigin-RevId: d6cca2ad6ad3a3717d27bba341419cb0c236833a
- use code style for on-demand imports
- support members for auto-import, not the whole class
GitOrigin-RevId: 32d14c06819a1b1062b081756f614113e22c9858
Also: constructor-related methods from JavaHighlightUtil moved to JavaPsiConstructorUtil
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 75d736e0472b7f004dfce5de2aaf1e52b23dab20
If there are multiple classes with the provided name in the scope, 'findClass' and 'findClasses' sort them according to their positions in the classpath. This requires building the OrderEntryGraph, which may take considerable time in a big project (see IJPL-930). New methods 'hasClass' are added to JavaPsiFacade, PsiElementFinder, JavaFileManager. Their implementations don't need to sort the results and therefore don't require building OrderEntryGraph. JavaLibraryUtil is migrated to use the new method.
GitOrigin-RevId: 0b4b05f54a5234e4e585c293bd9bd4a1957a4d70
Unify add/remove modifier fixes
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 83db9a85524edc7c39737a75b470e0697a9c02db
Move isRestrictedIdentifier to PsiTypesUtil
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: d31ca6bd7de9b28b963d95dbbdaa169d5532f138
Also, warnings are moved out to inspections
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)
GitOrigin-RevId: 2292723fde787454467307c213ea38e730aa0ff5
IDEA-360860 fixed
* split tests into individual methods, to make debugging easier
* add javadoc for VariableAccessUtils#isVariableTypeChangeSafeForReference
(cherry picked from commit f6b3468079959f7adec737e0b8ec3ad1d97e7ad2)
IJ-MR-150176
GitOrigin-RevId: 4b430e49819c7cba1e08ecee47b881f05be570d4
- Similarly to class names, `PsiElementFinderImpl.getClasses` only filtered directories by the scope, but not individual classes/files contained in the directory.
^IJPL-165129
GitOrigin-RevId: 9fdf755aaf80ad6af7435ad9c69eaca757c90277