diff --git a/annotations/com/intellij/codeInsight/editorActions/annotations.xml b/annotations/com/intellij/codeInsight/editorActions/annotations.xml
new file mode 100644
index 00000000000..65656bcd42e
--- /dev/null
+++ b/annotations/com/intellij/codeInsight/editorActions/annotations.xml
@@ -0,0 +1,118 @@
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
diff --git a/idea/src/org/jetbrains/jet/plugin/conversion/copy/ConvertJavaCopyPastePostProcessor.kt b/idea/src/org/jetbrains/jet/plugin/conversion/copy/ConvertJavaCopyPastePostProcessor.kt
index a52ed74af2d..85c4ccb32ee 100644
--- a/idea/src/org/jetbrains/jet/plugin/conversion/copy/ConvertJavaCopyPastePostProcessor.kt
+++ b/idea/src/org/jetbrains/jet/plugin/conversion/copy/ConvertJavaCopyPastePostProcessor.kt
@@ -35,9 +35,9 @@ import com.intellij.psi.codeStyle.CodeStyleManager
public class ConvertJavaCopyPastePostProcessor() : CopyPastePostProcessor {
- override fun extractTransferableData(content: Transferable?): TextBlockTransferableData? {
+ override fun extractTransferableData(content: Transferable): TextBlockTransferableData? {
try {
- if (content!!.isDataFlavorSupported(CopiedCode.DATA_FLAVOR)) {
+ if (content.isDataFlavorSupported(CopiedCode.DATA_FLAVOR)) {
return (content.getTransferData(CopiedCode.DATA_FLAVOR) as TextBlockTransferableData)
}
}
@@ -47,24 +47,23 @@ public class ConvertJavaCopyPastePostProcessor() : CopyPastePostProcessor?, value: TextBlockTransferableData?) {
+ public override fun processTransferableData(project: Project, editor: Editor, bounds: RangeMarker, caretOffset: Int, indented: Ref, value: TextBlockTransferableData) {
if (value !is CopiedCode)
return
if (value.getFile() == null)
return
- val file = PsiDocumentManager.getInstance(project!!).getPsiFile(editor!!.getDocument())
+ val file = PsiDocumentManager.getInstance(project).getPsiFile(editor.getDocument())
if (file !is JetFile)
return
@@ -74,7 +73,7 @@ public class ConvertJavaCopyPastePostProcessor() : CopyPastePostProcessor