private void invoke(@NotNull Project project, PsiDirectory myDirectory) throws IncorrectOperationException {
    myIsAvailableTimeStamp = 0; // to revalidate applicability

    try {
      if (myIsDirectory) {
        myDirectory.createSubdirectory(myNewFileName);
      }
      else {
        var targetFile = CreateFilePathFix.createFileForFix(project, myDirectory, myNewFileName, getFileText());
        if (targetFile !=null) {
          openFile(project, targetFile.directory(), targetFile.newFile(), targetFile.text());
        }
      }
    }
    catch (IncorrectOperationException e) {
      myIsAvailable = false;
    }
  }
private void invoke(@NotNull Project project, PsiDirectory myDirectory)