boolean (RefEntity @NotNull [] refElements) { final EntryPointsManager entryPointsManager = getContext().getExtension(GlobalJavaInspectionContext.CONTEXT).getEntryPointsManager(getContext().getRefManager()); for (RefEntity refElement : refElements) { if (refElement instanceof RefJavaElement && ((RefJavaElement)refElement).isEntry() && ((RefJavaElement)refElement).isPermanentEntry()) { entryPointsManager.removeEntryPoint((RefElement)refElement); } } return true; }