IDEA-367535 add docs for PsiPackage#findClassByShortName and its impl

GitOrigin-RevId: 2a0aee458ece289d1d306ad9ce9f81d6b7ef332b
This commit is contained in:
Max Medvedev
2025-09-14 16:43:37 +00:00
committed by intellij-monorepo-bot
parent 7429c6c37a
commit 3db4905b69
2 changed files with 14 additions and 2 deletions
@@ -121,6 +121,15 @@ public interface PsiPackage extends PsiCheckedRenameElement, NavigationItem, Psi
boolean containsClassNamed(@NotNull String shortName);
/**
* Returns classes with short name {@code shortName} in {@code scope}.
* NOTE that the result CAN contain classes outside the scope.
*
* @param shortName short name of the classes to find.
* @param scope scope to limit the query to, though the result can contain classes outside the scope.
*
* @return the array of classes with the specified short name.
*/
PsiClass @NotNull [] findClassByShortName(@NotNull String shortName, @NotNull GlobalSearchScope scope);
/**