MacroUtil: remove unnecessary check (IDEA-CR-8672)

This commit is contained in:
peter
2016-02-26 15:19:02 +01:00
parent fce48f4491
commit be7f6efd58
@@ -104,12 +104,7 @@ public class MacroUtil {
PsiElement scope = place;
boolean innermostClass = true;
while (scope != null) {
if (scope instanceof PsiMethod && ((PsiMethod)scope).hasModifierProperty(PsiModifier.STATIC)) {
// Method is static, we don't want to add its enclosing class to the list of returned expressions.
// Since this loop only can potentially add enclosing classes, just break out of it.
break;
}
else if (scope instanceof PsiClass) {
if (scope instanceof PsiClass) {
PsiClass aClass = (PsiClass)scope;
String name = aClass.getName();
if (innermostClass) {