Sdk () { if (state instanceof JavaCommandLine) { try { return ((JavaCommandLine)state).getJavaParameters().getJdk(); } catch (ExecutionException ignore) { } } return ProjectRootManager.getInstance(environment.getProject()).getProjectSdk(); }