IJ-CR-138987 [java] IDEA-355892 JEP 477 JEP 477. Problems with run gutters

- more assertions
- add comment

GitOrigin-RevId: 3c804fec7727a5527b522aaf0a16bb55507b4cc3
This commit is contained in:
Mikhail Pyltsin
2024-07-05 17:33:24 +02:00
committed by intellij-monorepo-bot
parent 96a1761f1f
commit 86f9b646e3
3 changed files with 27 additions and 5 deletions

View File

@@ -67,8 +67,8 @@ public final class PsiMethodUtil {
/**
* Finds the main method in the given class or its parents.
* ATTENTION: does not use implementations of {@link JavaMainMethodProvider}
* (unlike {@link #hasMainMethod(PsiClass)} or {@link #findMainMethod(PsiClass)})
* ATTENTION: this method does not use implementations of {@link JavaMainMethodProvider}
* if you need to take into account custom entry points, use {@link #hasMainMethod(PsiClass)} or {@link #findMainMethod(PsiClass)}
*
* @param aClass the class in which to find the main method.
* @return the main method if found, or null if not found or if an {@link IndexNotReadyException} occurs.