@Nullable
  private static String findEnclosingName(@NotNull final SourcePosition position) {
    return ReadAction.compute(()->{
      PsiClass typeDefinition = findEnclosingTypeDefinition(position);
      if (typeDefinition != null) {
        return getClassNameForJvm(typeDefinition);
      }
      return getScriptQualifiedName(position);
    });
  }
@Nullable
  private static String findEnclosingName(@NotNull final SourcePosition position)