List<NonBlockingContextChecker> (@NotNull PsiFile file, @NotNull Collection<String> blockingAnnotations, @NotNull Collection<String> nonBlockingAnnotations) { List<NonBlockingContextChecker> nonBlockingContextCheckers = new ArrayList<>(NonBlockingContextChecker.EP_NAME.getExtensionList()); nonBlockingContextCheckers.add(new AnnotationBasedNonBlockingContextChecker(blockingAnnotations, nonBlockingAnnotations)); nonBlockingContextCheckers.removeIf(checker -> !checker.isApplicable(file)); return nonBlockingContextCheckers; }