EA-65305 (IAE: StructuralSearchUtil.getProfileByPsiElement)

This commit is contained in:
Bas Leijdekkers
2015-02-24 17:13:59 +01:00
parent 8cfe52db29
commit 780daa9d0f
@@ -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);
}