Collection<Language> (@NotNull Project project, @Nullable XSourcePosition sourcePosition) { if (sourcePosition != null) { return getSupportedLanguages(getContextElement(sourcePosition.getFile(), sourcePosition.getOffset(), project)); } return Collections.emptyList(); }