mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
MacroUtil: remove unnecessary check (IDEA-CR-8672)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user