Runnable (@NotNull Project project) { Boolean found = project.getUserData(ANNOTATIONS_BEING_ATTACHED); if (found != null) { return null; } Sdk jdk = getJDKToAnnotate(project); return jdk == null ? null : () -> attachAnnotationsLaterTo(project, jdk); }