mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[devkit] DevKitUastInspectionBase#isAllowed: align with DevKitInspectionBase changes
This commit is contained in:
@@ -42,10 +42,18 @@ public abstract class DevKitUastInspectionBase extends AbstractBaseUastLocalInsp
|
||||
}
|
||||
|
||||
Module module = ModuleUtilCore.findModuleForPsiElement(holder.getFile());
|
||||
if (module == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (PluginModuleType.isPluginModuleOrDependency(module)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (PsiUtil.isPluginModule(module)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// always run in tests
|
||||
return ApplicationManager.getApplication().isUnitTestMode();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user