isConflictingNameDeclaredInside: NPE fixed

GitOrigin-RevId: bfbe66f171b9a0e8c1ef7217b180c4ba54a9c993
This commit is contained in:
Tagir Valeev
2020-01-28 12:05:01 +00:00
committed by intellij-monorepo-bot
parent 4ce57c1848
commit 6ab207c197
@@ -240,7 +240,8 @@ public class InstanceOfUtils {
return null;
}
private static boolean isConflictingNameDeclaredInside(PsiIdentifier identifier, PsiElement statement) {
private static boolean isConflictingNameDeclaredInside(@Nullable PsiIdentifier identifier, @NotNull PsiElement statement) {
if (identifier == null) return false;
class Visitor extends JavaRecursiveElementWalkingVisitor {
boolean hasConflict = false;