mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-65305 (IAE: StructuralSearchUtil.getProfileByPsiElement)
This commit is contained in:
+1
@@ -32,6 +32,7 @@ public class StructuralSearchUtil {
|
||||
|
||||
@Contract("null -> false")
|
||||
public static boolean isIdentifier(PsiElement element) {
|
||||
if (element == null) return false;
|
||||
final StructuralSearchProfile profile = getProfileByPsiElement(element);
|
||||
return profile != null && profile.isIdentifier(element);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user